package com.acerola.mrpc.protocol;

import io.netty.util.concurrent.Promise;
import lombok.Data;

/**
 * @program: mrpc
 * @description: 用来接收结果的 promise 对象
 * @author: Acerola
 * @create: 2022-12-10 19:09
 **/
@Data
public class RpcFuture<T> {

    private Promise<T> promise;

    public RpcFuture(Promise<T> promise) {
        this.promise = promise;
    }

}
